package com.akuhome.resource.dao;

import com.akuhome.resource.entity.Dormitory;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface DormitoryDao {
    List<Dormitory> findAllDormitory();
    List<Dormitory> findDormitoryByBuildId(Integer buildId);
    Integer insertDormitory(Dormitory dormitory);
    void insertDormitoryList(Map<String,Object> insertMap);
    void updateDormitory(Dormitory dormitory);
    void updateDormitoryList(List<Dormitory> dormList);
    void deleteDormitory(Integer id);
    void deleteDormitoryByBuildId(Integer buildId);
}
